package com.example.xianzhi.service.impl;

import com.example.xianzhi.dao.AdDao;
import com.example.xianzhi.dao.impl.AdDaoImpl;
import com.example.xianzhi.entity.TbAd;
import com.example.xianzhi.service.AdService;

import java.util.List;

public class AdServiceImpl implements AdService {
    private AdDao adDao =new AdDaoImpl();

    @Override
    public List<TbAd> selectshufflingpic() {


        return adDao.selectshufflingpic();
    }

    @Override
    public int insertshuffling(String ad_pic) {
        return adDao.insertshuffling(ad_pic);
    }

    @Override
    public int deleteshuffling(int ad_id) {
        return adDao.deleteshuffling(ad_id);
    }
}
